
<%@ page import="java.sql.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="javax.naming.*"%>
<%@ page import="java.util.Date"%>
<%@ page import="com.mayinghao.stat.Tongji"%>
<%@ page import="com.mayinghao.stat.TongjiValue"%>
<%@ page import="com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable"%>
<%@ page import="com.sun.corba.se.spi.ior.iiop.RequestPartitioningComponent" %>
<%@ page import="java.text.SimpleDateFormat"%>

<HTML><HEAD><TITLE>????????</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="Default.files/css.css" type=text/css 
rel=stylesheet>

<SCRIPT src="fPopUpCalendarDlg.js"></SCRIPT>
<SCRIPT language=javascript>
function check(){
option.submit();
}

</SCRIPT>
</HEAD>
<BODY MS_POSITIONING="GridLayout">

<%
 String begintime="";
 String endtime="";
 String section="0";
 section=(String)session.getAttribute("mger_type");
 if((request.getParameter("begintime").length()==10)){
    begintime=request.getParameter("begintime");
    begintime=begintime.substring(0,4)+begintime.substring(5,7)+begintime.substring(8,10);
    }
 if(request.getParameter("endtime").length()==10){
    endtime=request.getParameter("endtime");
    endtime=endtime.substring(0,4)+endtime.substring(5,7)+endtime.substring(8,10);
    } 
  if((request.getParameter("areacode")!=null)&&(request.getParameter("areacode").length()>=1))
  {
  section=request.getParameter("areacode");
  }
  Hashtable areacode=new Hashtable();
  areacode.put("0","024");
  areacode.put("1","0410");
  areacode.put("2","0411");
  areacode.put("3","0412");
  areacode.put("4","0413");
  areacode.put("5","0414");
  areacode.put("6","0415");
  areacode.put("7","0416");
  areacode.put("8","0417");
  areacode.put("9","0418");
  areacode.put("10","0419");
  areacode.put("11","0421");
  areacode.put("12","0427");
  areacode.put("13","0429");
  areacode.put("14","0");
  
  
  
  %>


<FORM name=option action="ln_test.jsp" method=post> 
   
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align="center" colSpan=2>
							<TABLE cellSpacing=0 cellPadding=0 width="95%" bgColor=#f1f1f1 border=0>
								<TBODY>
									<TR height=40>
										<TD>
											<FONT color="#00ff80">
												<FONT color="#8000ff">
													 ???????
												</FONT>
											</FONT>
										</TD>
										
										<TD align=right>????
		 <select name="areacode" size=1>
         <option value="" selected><%out.print("--???????--");%> </option>
            <option value="0"><%out.print("?????");%> </option>
            <option value="024"><%out.print("?????");%> </option>
            <option value="0411"><%out.print("?????");%> </option>
            <option value="0412"><%out.print("?????");%> </option>
            <option value="0413"><%out.print("?????");%> </option>
            <option value="0414"><%out.print("?????");%> </option>
            <option value="0421"><%out.print("?????");%> </option>
            <option value="0427"><%out.print("?????");%> </option>
            <option value="0418"><%out.print("?????");%> </option>
            <option value="0416"><%out.print("?????");%> </option>
            <option value="0417"><%out.print("?????");%> </option>
            <option value="0415"><%out.print("?????");%> </option>
            <option value="0419"><%out.print("?????");%> </option>
            <option value="0429"><%out.print("??????");%></option>
            <option value="0410"><%out.print("?????");%> </option>
            <option value="1111"><%out.print("????");%></option>
            </select>
         <INPUT style="WIDTH: 70px" type="text" name=begintime>
         <input type="button" name="button_begin" value="&gt;&gt;" onClick="fPopUpCalendarDlg(begintime);return false">
          ????
          <INPUT  style="WIDTH: 70px" type="text"
            name=endtime><input type="button" name="button_end" value="&gt;&gt;" onClick="fPopUpCalendarDlg(endtime);return false">
            <INPUT id=btnSearch tabIndex=1 type=image alt="" 
            src="Default.files/sp_button_search.gif" border=0 name=btnSearch onclick="check()"></TD>
          
									</TR>
								</TBODY>
							</TABLE>
							<TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
								<TBODY>
									<TR>
										<TD>
											<TABLE id=dgDownLoad style="BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-COLOR: #cccccc; WIDTH: 100%; BORDER-TOP-COLOR: #cccccc; BORDER-COLLAPSE: collapse; BORDER-RIGHT-COLOR: #cccccc" borderColor=#cccccc cellSpacing=0 rules=all border=1>
												<TBODY>
													<TR style="BACKGROUND-COLOR: #d0ebee" align="center">
													    <TD style="WIDTH: 5%">
															<FONT color="#ff0080">&nbsp;??</FONT>
														</TD>
														<TD style="WIDTH: 5%">
															<FONT color="#ff0080">&nbsp;???</FONT>
														</TD>
														<TD style="WIDTH: 5%">
															<FONT color="#ff0080">????</FONT></TD>
														
														
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080">&nbsp;????</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080">????</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080">&nbsp;????</FONT>
														</TD>
														
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080"> &nbsp;???? </FONT>
														</TD>
														<TD style="WIDTH:5%" align=left>
															<FONT color="#ff0080">??</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080">??</FONT>
														</TD>
														
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080">????</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080">????</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT color="#ff0080">?????</FONT>
														</TD>
													</TR>
												<%
												if(!section.equals("0")){
												
												int end = Integer.parseInt(endtime);
												for(int begin=Integer.parseInt(begintime);begin<=end;begin++){
											
												
												TongjiValue tv=new Tongji().tongji(begin+"",begin+"",section);
													  int network=tv.getNetwork();//???????
													  int common=tv.getCommon();//???????
													  int business=tv.getBusiness();//????????
													  int vsop=tv.getVsop(); //???????
													  int smsup=tv.getSmsup();//??????????
													  int sms_register=tv.getSms_register();//?????????
													  int network_register=tv.getNetwork_register();//?????????
													  int uppwd=tv.getUppwd();//?????????????
													  int logout=tv.getLogout();//?????????
													  int pause=tv.getPause();//?????????
													  int visit_count=tv.getVisit_count();//???????
													  int update_ppwd=tv.getUpdate_ppwd();//?????????
													  int users_ftp=0;//????U????
													  int mail_to=0;//???????
													  int mail_from=0;//???????
													  String str_ftp=tv.getStr_ftp();
													  String str_to=tv.getStr_to();
													  String str_from=tv.getStr_from();
												
												%>	
													<TR  align="center">
													<TD style="WIDTH: 5%" align=left>
																<FONT color="#8080ff">
																<%if(request.getParameter("endtime")!=null){
																   
												                   out.print(endtime.substring(0,4)+"."+endtime.substring(4,6)+"."+endtime.substring(6,8));
												                  }else{
												                  out.print(new SimpleDateFormat("yyyy.MM.dd").format(new Date()));
												                  }
												                  %>
																</FONT>
														
													</TD>
													<TD style="WIDTH: 5%" align=left>
																<FONT color="#8080ff">
																<%

								              if(section.equals("024"))out.println("?????");
											  else if(section.equals("0410"))out.println("?????");
											  else if(section.equals("0411"))out.println("?????");
											  else if(section.equals("0412"))out.println("?????");
											  else if(section.equals("0413"))out.println("?????");
											  else if(section.equals("0414"))out.println("?????");
											  else if(section.equals("0415"))out.println("?????");
											  else if(section.equals("0416"))out.println("?????");
											  else if(section.equals("0417"))out.println("?????");
											  else if(section.equals("0418"))out.println("?????");
											  else if(section.equals("0419"))out.println("?????");
											  else if(section.equals("0421"))out.println("?????");
											  else if(section.equals("0427"))out.println("?????");
											  else if(section.equals("0429"))out.println("??????");
																%>
																</FONT>
														
														</TD>
														<TD style="WIDTH: 5%" align=left>
																<FONT color="#8080ff">
																<%=network%>
																</FONT>
														
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=smsup%>
																</FONT>
															</FONT>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=users_ftp%>
																</FONT>
															</FONT>
														</TD>
													<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=network_register%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=sms_register%>
																</FONT>
															</FONT>
														</TD>
														
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=logout%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=pause%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=mail_from%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=mail_to%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																		<%=visit_count%>
																</FONT>
															</FONT>
														</TD>
														
													</TR>
													<%}
												}
												
												else{
												String area="";
												for(int i=0;i<15;i++){
												TongjiValue tv=new Tongji().tongji(begintime,endtime,(String)areacode.get(i+""));
													  int network=tv.getNetwork();//???????
													  int common=tv.getCommon();//???????
													  int business=tv.getBusiness();//????????
													  int vsop=tv.getVsop(); //???????
													  int smsup=tv.getSmsup();//??????????
													  int sms_register=tv.getSms_register();//?????????
													  int network_register=tv.getNetwork_register();//?????????
													  int uppwd=tv.getUppwd();//?????????????
													  int logout=tv.getLogout();//?????????
													  int pause=tv.getPause();//?????????
													  int visit_count=tv.getVisit_count();//???????
													  int update_ppwd=tv.getUpdate_ppwd();//?????????
													  int users_ftp=0;//????U????
													  int mail_to=0;//???????
													  int mail_from=0;//???????
													  String str_ftp=tv.getStr_ftp();
													  String str_to=tv.getStr_to();
													  String str_from=tv.getStr_from();
												
												%>	
													<TR  align="center">
													<TD style="WIDTH: 5%" align=left>
																<FONT color="#8080ff">
																<%if(request.getParameter("endtime")!=null){
																   
												                   out.print(endtime.substring(0,4)+"."+endtime.substring(4,6)+"."+endtime.substring(6,8));
												                  }else{
												                  out.print(new SimpleDateFormat("yyyy.MM.dd").format(new Date()));
												                  }
												                  %>
																</FONT>
														
													</TD>
													<TD style="WIDTH: 5%" align=left>
																<FONT color="#8080ff">
																<%
																
																switch(i){
																case 0:area="??";break;
																case 1:area="??";break;
																case 2:area="??";break;
																case 3:area="??";break;
																case 4:area="??";break;
																case 5:area="??";break;
																case 6:area="??";break;
																case 7:area="??";break;
																case 8:area="??";break;
																case 9:area="??";break;
																case 10:area="??";break;
																case 11:area="??";break;
																case 12:area="??";break;
																case 13:area="???";break;
																case 14:area="??";break;
																default: area="??";
																}
																out.print(area);
																%>
																</FONT>
														
														</TD>
														<TD style="WIDTH: 5%" align=left>
																<FONT color="#8080ff">
																<%=network%>
																</FONT>
														
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=smsup%>
																</FONT>
															</FONT>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=users_ftp%>
																</FONT>
															</FONT>
														</TD>
													<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=network_register%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=sms_register%>
																</FONT>
															</FONT>
														</TD>
														
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=logout%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=pause%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=mail_from%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																	<%=mail_to%>
																</FONT>
															</FONT>
														</TD>
														<TD style="WIDTH: 5%" align=left>
															<FONT >
																
																<FONT color="#8080ff">
																		<%=visit_count%>
																</FONT>
															</FONT>
														</TD>
														
													</TR>
													<%}}%>
												</TBODY>
											</TABLE>
										</TD>
									</TR>
								</TBODY>
							</TABLE>
						</TD></TR>
  <TR>
    <TD height=20>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR>
          <TD width=180><IMG height=40 
            src="Default.files/main_bottom_pic01.gif" width=180></TD>
          <TD width="40%" background=Default.files/main_bottom_bg.gif></TD>
          <TD align=right background=Default.files/main_bottom_bg.gif>
            <TABLE style="FONT-SIZE: smaller; FONT-FAMILY: ??" cellSpacing=0 
            cellPadding=0 width="100%" align=center border=0>
              <TBODY>
              <TR>
                <TD noWrap>??<FONT style="COLOR: red">8</FONT>???&nbsp;</TD>
                <TD noWrap>???<FONT 
                  style="COLOR: red; FONT-FAMILY: ??">1</FONT>/<FONT 
                  style="COLOR: red; FONT-FAMILY: ??">1</FONT>?</TD>
                <TD noWrap align=right><INPUT style="BORDER-RIGHT: blue 1px; BORDER-TOP: blue 1px; FONT-SIZE: 12pt; BORDER-LEFT: blue 1px; CLIP: rect(auto auto auto auto); CURSOR: hand; COLOR: blue; BORDER-BOTTOM: blue 1px; FONT-FAMILY: Webdings; HEIGHT: 20px; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" disabled onclick="__doPostBack('pageHelper','first')" type=button value=9><INPUT style="BORDER-RIGHT: blue 1px; BORDER-TOP: blue 1px; FONT-SIZE: 12pt; BORDER-LEFT: blue 1px; CLIP: rect(auto auto auto auto); CURSOR: hand; COLOR: blue; BORDER-BOTTOM: blue 1px; FONT-FAMILY: Webdings; HEIGHT: 20px; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" disabled onclick="__doPostBack('pageHelper','prev')" type=button value=3><INPUT style="BORDER-RIGHT: blue 1px; BORDER-TOP: blue 1px; FONT-SIZE: 12pt; BORDER-LEFT: blue 1px; CLIP: rect(auto auto auto auto); CURSOR: hand; COLOR: blue; BORDER-BOTTOM: blue 1px; FONT-FAMILY: Webdings; HEIGHT: 20px; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" disabled onclick="__doPostBack('pageHelper','next')" type=button value=4><INPUT style="BORDER-RIGHT: blue 1px; BORDER-TOP: blue 1px; FONT-SIZE: 12pt; BORDER-LEFT: blue 1px; CLIP: rect(auto auto auto auto); CURSOR: hand; COLOR: blue; BORDER-BOTTOM: blue 1px; FONT-FAMILY: Webdings; HEIGHT: 20px; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" disabled onclick="__doPostBack('pageHelper','last')" type=button value=:>&nbsp;&nbsp;???<INPUT 
                  style="WIDTH: 20px" value=1 name=pageHelper>?</TD>
                <TD><INPUT onclick="__doPostBack('pageHelper','go')" 
                  type=image src="Default.files/go.gif" 
            name=btnGO></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM></BODY></HTML>
